﻿@model AuditModel.County

@{
    ViewBag.Title = AuditResources.UI.PageTitle;
}

<h2>@AuditResources.UI.Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>@AuditResources.County.ObjectName</legend>

        @Html.HiddenFor(model => model.Code)
        <div class="editor-label">
           @AuditResources.County.Code
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Code)
            @Html.ValidationMessageFor(model => model.Code)
        </div>
        <div class="editor-label">
            @AuditResources.County.Name
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
            </fieldset>
    <div>
<input type="submit" value="@AuditResources.UI.Save" />|
    @Html.ActionLink(AuditResources.UI.BackToList, "Index", null, new { Class = "button" })
</div>
}


